package com.hengpeng.itfin.service.activity.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hengpeng.itfin.service.ServiceFactory;
import com.hengpeng.itfin.service.activity.RewardAddRateService;
import com.hengpeng.itfinbase.en.RewardAddRateStatus;

@Lazy
@Service
@Transactional
public class RewardAddRateServiceImpl implements RewardAddRateService {

    @Autowired
    private ServiceFactory serviceFactory;

    @Override
    public int updateStatus(long id, RewardAddRateStatus oldStatus, RewardAddRateStatus newStatus, Date updateTime) {
        return serviceFactory.getDaoFactory().getRewardAddRateDao().updateStatus(id, oldStatus, newStatus, updateTime);

    }

}
